//
//  SeeRadioCollectionCell.m
//  Zaker
//
//  Created by lirui on 16/3/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SeeRadioCollectionCell.h"

@implementation SeeRadioCollectionCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[ UIImageView alloc] init];
        [self.contentView addSubview:_imgView];
        
        self.titleLabel = [[ BaseLabel alloc] init];
        
        _titleLabel.font = [ UIFont systemFontOfSize:13];
      
        [self.contentView addSubview:_titleLabel];
        
        self.tnameLabel =[[ BaseLabel alloc] init];
        _titleLabel.numberOfLines = 2;
      
        _tnameLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_tnameLabel];
    }
    return  self;
}
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _imgView.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height - 50*HEIGHT);
    _tnameLabel.frame =CGRectMake(0, _imgView.frame.size.height, layoutAttributes.frame.size.width , HEIGHT*20);
    _titleLabel.frame = CGRectMake(0, _tnameLabel.frame.size.height+_tnameLabel.frame.origin.y, layoutAttributes.frame.size.width, HEIGHT * 30);
}

@end
